package br.usp.pcs.basys2.event;

import br.usp.pcs.basys2.BasysProcess;

public class EndOfProcessException extends Exception {
	
	private BasysProcess process;
	private Integer timeToWait;

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public EndOfProcessException(BasysProcess process,
			Integer timeToWait) {
		super();
		this.process = process;
		this.timeToWait = timeToWait;
	}

	public long getTimeToWait() {
		return timeToWait;
	}

	public BasysProcess getNewProcess() {
		return process;
	}

}
